<!--
 * @Description  : 
 * @Version      : 1.0
 * @Author       : Shiming
 * @Date         : 2022-04-29 17:28:23
 * @LastEditors  : Shiming
 * @LastEditTime : 2022-05-06 14:47:43
 * @FilePath     : \\tms-obc-web\\src\\app\\routes\\partner\\account-management\\components\\list\\list.component.html
 * Copyright (C) 2022 huzhenhong. All rights reserved.
-->
<page-header-wrapper [title]="''"></page-header-wrapper>
<nz-card>
  <!-- <div nz-row>
    <div [nzSpan]="" nz-col>

    </div>
  </div> -->
  <sf [schema]="schema" [mode]="'search'" [ui]="ui" [button]="'none'" #sf>
    <button nz-button nzType="primary" [disabled]="!sf.valid" (click)="st?.load(1)">查询</button>
    <button nz-button (click)="resetSF()">重置</button>
    <button nz-button (click)="export()" nzType="primary" nzGhost  acl  [acl-ability]="['AM-LIST-export']">导出</button>
  </sf>

</nz-card>
<nz-card>
  <st #st [data]="service.$api_get_account_management_page" [columns]="columns" [scroll]="{ x: '1200px' }"
    [req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
    [res]="{ reName: { list: 'data.records', total: 'data.total' } }"
    [page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
    [loading]="service.http.loading" multiSort>
    <ng-template st-row="allBalance" let-item>
      <div class="text-right">{{item.allBalance | currency}}</div>
    </ng-template>
    <ng-template st-row="unEntryAmount" let-item>
      <a class="text-right text-blue-dark" acl  [acl-ability]="['AM-LIST-unEntryAmount']"
        [routerLink]="'/partner/account-management/am/recorded/detail/'+item?.roleId">{{item.unEntryAmount | currency}} </a>
    </ng-template>
    <ng-template st-row="availableBalance" let-item>
      <div class="text-right">{{item.availableBalance | currency}}</div>
    </ng-template>
    <ng-template st-row="allBalance" let-item>
      <div class="text-right">{{item.allBalance | currency}}</div>
    </ng-template>


  </st>
</nz-card>
